<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="includes/head.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit Profile</title>
</head>
<body>
	<span id="whole-page-wrapper">
			<div id="wrapper" align="center">
			<%@include file="includes/header.jsp" %>
			<%@include file="includes/menu.jsp" %>	
					
				<div id="content">
					<div id="inner-content">
					<h3><a href="editUser.jsp">Edytuj swoje dane</a></h3>
					<c:if test="${sessionScope.user != null}">
					<h3><a href="changePass.jsp?userid=${sessionScope.user.id}">Zmień hasło</a></h3><br>
					<c:if test="${sessionScope.user.type == 'User'}">
						<h3><a href="getMyOrders">Zamówienia</a></h3><br>
					</c:if>
					<h3> Wygląd strony (motyw) </h3>
						<form action="changeTheme" method="post">
							<fieldset>
								<select name="theme">
									<option value=1> Pure
									<option value=2> Oldschool
									<option value=3> War
								</select>
							
								<input type="submit" value="Zmień motyw">
							</fieldset>
						</form>	
					</c:if>
					<c:if test="${sessionScope.user == null }">
							Nie masz uprawnień do korzystania z tej strony!
						</c:if>	
					</div>
				</div>
				<%@include file="includes/footer.jsp" %>
			</div>
		</span>
</body>
</html>